package com.ltg.urban.domain.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ltg.urban.domain.project.data.response.UrbanCapitalPageResp;
import com.ltg.urban.domain.project.data.response.UrbanProjectCapitalResp;
import com.ltg.urban.domain.project.entity.UrbanProjectCapital;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p> ClassName: UrbanProjectCapitalMapper </p>
 * <p> Package: com.ltg.urban.domain.project.mapper </p>
 * <p> Description: </p>
 * <p></p>
 *
 * @Author: LTG
 * @Create: 2023/2/26 - 15:36
 * @Version: v1.0
 */

@Mapper
public interface UrbanProjectCapitalMapper extends BaseMapper<UrbanProjectCapital> {
    Page<UrbanCapitalPageResp> pageList(Page<UrbanCapitalPageResp> page,
                                        @Param("userId") Long userId,
                                        @Param("roleName") String roleName,
                                        @Param("keyword") String keyword,
                                        @Param("approveResult")Integer approveResult);


    UrbanProjectCapitalResp detail(@Param("capitalId") Long capitalId);

    BigDecimal selectAllTotal();


    UrbanProjectCapital selectByProjectId(@Param("projectId") Long projectId);





}
